﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace VideoCall
{
    public partial class FrmCalling : Form
    {
        public string _name = "";
        public delegate void Answer(string data);
        public event Answer Ans = null;
        public void OnAnswer(string data)
        {
            if(Ans != null)
                Ans(data);
        }

        public FrmCalling()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            Ans("YES|" + _name);
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            Ans("NO|" + _name);
        }

        private void FrmCalling_Load(object sender, EventArgs e)
        {

        }
    }
}
